package com.xci.core.exceptions;

/**
 * 实体未找到异常
 * @author 吕艳阳
 */
public class EntityNotFoundException extends RuntimeException {
    private String id;

    public EntityNotFoundException(String id) {
        super("传入的参数有误,无法找到相关数据");
        this.id = id;
    }

    public EntityNotFoundException(String id, String message) {
        super(message);
        this.id = id;
    }

    public String getId() {
        return id;
    }
}